package top.igotcha.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import top.igotcha.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import top.igotcha.eduservice.entity.EduTeacher;
import top.igotcha.eduservice.entity.frontvo.CourseFrontVo;
import top.igotcha.eduservice.entity.frontvo.CourseWebVo;
import top.igotcha.eduservice.entity.vo.*;

import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author Gotcha
 * @since 2021-08-06
 */
public interface EduCourseService extends IService<EduCourse> {
    String saveCourseInfo(CourseInfoVo courseInfoVo);

    CourseInfoVo getCourseInfo(String courseId);

    void updateCourseInfo(CourseInfoVo courseInfoVo);

    CoursePublishVo getCoursePublish(String courseId);

    void pageCourseCondition(Page<EduCourse> pageParam, CourseQueryVO vo);

    void removeCourse(String courseId);

    void pageCourseNewCondition(Page<EduCourse> pageParam, CourseNewQueryVO vo);

    CourseWebVo getBaseCourseInfo(String courseId);

    Map<String, Object> getCourseFrontList(Page<EduCourse> pageCourse, CourseFrontVo courseFrontVo);
}
